/*
 * Copyright 2017 Baiyyy
 * @(#)BusinessAjaxException.java
 */

package com.byyy.ccts.modules.common.exception;

import com.byyy.ccts.modules.common.enums.ExceptionEnum;

/**
 * Created by DELL on 2020-5-28.
 */
public class BusinessAjaxException extends RuntimeException {

    private ExceptionEnum exceptionEnum;

    public BusinessAjaxException(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public BusinessAjaxException(ExceptionEnum exceptionEnum, String msg) {
        super(msg);
        this.exceptionEnum = exceptionEnum;
    }

    public BusinessAjaxException(ExceptionEnum exceptionEnum, String msg, Throwable e) {
        super(msg, e);
        this.exceptionEnum = exceptionEnum;
    }

    public ExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }

}
